:root {
  /*限定字体高度*/
  --t-font-height: 19px;
  --t-point-size: 15px;
  --t-font-size: 13px;
}
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}
.tContainer {
  position: relative;
  margin: 0;
  padding: 0;
  border-radius: 15px;
  background-color: var(--t-main-background-color);
  box-shadow: var(--t-box-shadow);
}
.tHeaderContainer {
  position: relative;
  z-index: 2;
}
.tHeader {
  text-align: center;
  padding: 2px;
  background-color: var(--t-header-background-color);
}
.tHeader h4 {
  font-size: 14px;
  margin: 5px;
  letter-spacing: 1px;
  color: var(--t-header-font-color);
}
.tHeader ul.tShellDots {
  position: absolute;
  top: 3px;
  left: 8px;
  padding-left: 0;
  margin: 0;
}
.tHeader ul.tShellDots li {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 10px;
  margin-left: 6px;
  margin-top: 4px;
  line-height: 16px;
  cursor: pointer;
}
.tShellDot {
  opacity: 0;
  transition: opacity 0.2s ease;
  margin-bottom: 0;
}
.tShellDots:hover .tShellDot {
  opacity: 1;
}
.tShellDotsRed {
  background-color: #c83030;
}
.tShellDotsYellow {
  background-color: #f7db60;
}
.tShellDotsGreen {
  background-color: #2ec971;
}
.tHeaderPin {
  display: inline-block;
  position: absolute;
  z-index: 100;
  right: 13px;
  top: 7px;
  cursor: pointer;
}
.tWindow,
.tCrudeFont,
.tAskInput {
  font-size: var(--t-font-size);
  font-family: Monaco, Menlo, Consolas, monospace;
}
.tWindow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  overflow: auto;
  z-index: 1;
  max-height: none;
  min-height: 140px;
  padding: 0 0 0 20px;
  font-weight: 400;
  cursor: text;
  background-color: var(--t-main-background-color);
  color: var(--t-main-font-color);
}
.tCrudeFont {
  font-weight: bold;
}
.tCmdLine {
  margin: 0 0;
}
.tLogBox {
  display: block;
  position: relative;
  margin: 0 0;
}
.tCmdLineContent {
  font-size: var(--t-font-size);
  word-break: break-all;
}
.tLastLine {
  // font-size: 0;
  word-spacing: 0;
  letter-spacing: 0;
  position: relative;
}
.tDisableSelect {
  user-select: none;
}
// 光标闪烁
@keyframes cursor-flash {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}
.tWindow {
  .tCursor {
    position: absolute;
  }
  .tCursorBlink {
    animation: cursor-flash 1s infinite;
  }
  .tCursorBlock {
    background-color: var(--t-cursor-color);
    height: 100%;
  }
  .tCursorUnderline::before {
    display: block;
    position: absolute;
    background-color: var(--t-cursor-color);
    width: 100%;
    height: 3px;
    z-index: 100;
    bottom: 0;
    left: 0;
    content: " ";
  }
  .tCursorBar::before {
    display: block;
    position: absolute;
    background-color: var(--t-cursor-color);
    width: 2px;
    height: 100%;
    z-index: 100;
    top: 0;
    left: 0;
    content: " ";
  }
  .tCursorNone {
    display: none;
  }
}
.tCmdInput {
  position: relative;
  border: none;
  width: 1px;
  height: 0;
  opacity: 0;
  cursor: text;
  padding: 1px 2px;
  text-rendering: auto;
  letter-spacing: normal;
  word-spacing: normal;
  text-transform: none;
  text-indent: 0;
  text-shadow: none;
  display: inline-block;
  text-align: start;
  appearance: textfield;
  word-wrap: break-word;
  margin: 0;
  background-color: var(--t-main-background-color);
}
.tContentNormal {
  .success,
  .error,
  .warning,
  .info,
  .system {
    padding: 0 3px;
    color: var(--t-tag-font-color);
  }
  .success {
    background-color: #27ae60;
  }
  .error {
    background-color: #c0392b;
  }
  .warning {
    background-color: #f39c12;
  }
  .info {
    background-color: #2980b9;
  }
  .system {
    background-color: #8697a2;
  }
}
.tFlag {
  opacity: 0;
}
.tPoint {
  position: absolute;
  z-index: 100;
  width: var(--t-point-size);
  height: var(--t-point-size);
  background: rgba(0, 0, 0, 0);
}
.tPointLt {
  left: calc(0 - var(--t-point-size) / 2);
  top: calc(0 - var(--t-point-size) / 2);
  cursor: nwse-resize;
}
.tPointLb {
  left: calc(0 - var(--t-point-size) / 2);
  top: calc(100% - var(--t-point-size) / 2);
  cursor: nesw-resize;
}
.tPointRt {
  left: calc(100% - var(--t-point-size) / 2);
  top: calc(0 - var(--t-point-size) / 2);
  cursor: nesw-resize;
}
.tPointRb {
  left: calc(100% - var(--t-point-size) / 2);
  top: calc(100% - var(--t-point-size) / 2);
  cursor: nwse-resize;
}

.tHelpTipBox {
  position: absolute;
  z-index: 100;
  width: 40%;
  padding: 12px 6px 10px 10px;
  border-radius: 5px;
  border: 1px solid var(--t-log-fold-icon-color);
  border-left: 1px dashed var(--t-log-fold-icon-color);
  border-right: 1px dashed var(--t-log-fold-icon-color);
  color: var(--t-main-font-color);
  background-color: var(--t-main-background-color);
  --t-cmd-tips-box-shadow: 5px 5px 15px 0 rgb(116 129 153 / 30%);
  box-shadow: var(--t-cmd-tips-box-shadow);
  font-size: 12px;
}

.tCmdTips {
  --t-cmd-tips-box-shadow: 5px 5px 15px 0 rgb(116 129 153 / 30%);

  position: absolute;
  z-index: 100;
  background-color: var(--t-cmd-tips-background-color);
  border-radius: var(--t-cmd-tips-border-radius);
  color: var(--t-cmd-tips-font-color);
  overflow-y: auto;
  cursor: context-menu;
  box-shadow: var(--t-cmd-tips-box-shadow);
  font-family: system-ui;
}

.tCmdTipsItems {
  min-width: 280px;
  max-width: 500px;
  max-height: 200px;
  overflow-y: auto;
}

.tCmdTipsFooter {
  width: 100%;
  padding: 5px 0;
  text-indent: 6px;
  line-height: var(--t-font-height);
  background-color: var(--t-cmd-tips-footer-background-color);
  color: var(--t-cmd-tips-footer-font-color);
  font-size: 12px;
}

.tCmdTipsItem {
  padding: 5px 8px;
  text-overflow: ellipsis;
  overflow: hidden;
  text-wrap: nowrap;
  color: var(--t-cmd-tips-des-font-color);
}

.tCmdTipsItemFirst {
  border-top-left-radius: var(--t-cmd-tips-border-radius);
  -webkit-border-top-left-radius: var(--t-cmd-tips-border-radius);
  border-top-right-radius: var(--t-cmd-tips-border-radius);
  -webkit-border-top-right-radius: var(--t-cmd-tips-border-radius);
}

.tCmdTipsItemActive {
  background-color: var(--t-cmd-tips-active-background-color);
}

.tCmdTipsContent {
  font-weight: bold;
  color: var(--t-cmd-tips-content-font-color);
  cursor: context-menu;
  user-select: none;
}

.tCmdTipsDes {
  color: var(--t-cmd-tips-des-font-color);
  margin-left: 8px;
  cursor: context-menu;
  user-select: none;
}
.tLogBoxFolded {
  height: var(--t-font-height);
  overflow-y: clip;
  background-color: var(--t-log-box-folded-background-color);
}
.tLogBoxFolded:hover {
  background-color: var(--t-log-box-folded-hover-background-color);
  cursor: pointer;
}
.tLogFoldIcon {
  position: absolute;
  width: 10px;
  height: 10px;
  left: -17px;
  top: 2px;
  border: 1px solid var(--t-log-fold-icon-border-color);
  text-align: center;
  line-height: 9px;
  background-color: var(--t-log-fold-icon-background-color);
  color: var(--t-log-fold-icon-color);
  cursor: pointer;
  user-select: none;
  z-index: 100;
}

.tLogFoldIconActive {
  background-color: var(--t-log-fold-icon-active-background-color);
  color: var(--t-log-fold-icon-active-color);
}

.tLogFoldLine {
  position: absolute;
  height: calc(100% - 10px);
  width: 1px;
  background-color: var(--t-log-fold-line-color);
  left: -12px;
  top: 10px;
}

.tTable {
  max-width: 100%;
  overflow: auto;
  padding: 0;
  margin: 0;
  thead {
    font-weight: 600;
  }
  tr,
  td,
  tbody,
  thead {
    margin: 0;
    padding: 15px;
  }
}

.tBorderDashed {
  border-collapse: collapse;
  border: var(--t-table-border);
}

.tAskInput {
  border: none;
  max-width: 300px;
  background: none;
  outline: none;
  padding: 0;
  display: inline-block;
  color: var(--t-main-font-color);
}
.tAskInput {
  &:focus,
  &:focus-visible {
    border: none;
    outline: none;
  }
}
/**=================全局样式==============*/
:global {
  .t-init-box {
    border-radius: 5px;
    border: 1px solid #ffae0d;
    border-left: 1px dashed #ffae0d;
    border-right: 1px dashed #ffae0d;
    color: var(--t-main-font-color);
    align-content: center;
    text-align: center;
    padding: 25px 15px 40px 15px;
    width: 430px;
    margin: 30px 0;
  }
  .t-cmd-key {
    font-weight: bold;
    color: var(--t-cmd-key-color);
  }
  .t-a {
    color: var(--t-link-color);
    &:hover {
      color: var(--t-link-hover-color);
    }
  }
  .t-code-inline {
    color: var(--t-code-inline-font-color);
    font-weight: 600;
  }
  .t-cmd-help-eg {
    float: left;
    width: 30px;
    display: flex;
    font-size: var(--t-font-size);
    line-height: var(--t-font-height);
    margin-top: -2px;
  }
  .t-cmd-help-example {
    float: left;
    width: calc(100% - 30px);
    display: flex;
  }
  .t-example-ul {
    padding: 0 0 0 10px;
    margin: 0;
    list-style: none;
    li {
      margin-top: 5px;
      &:nth-of-type(1) {
        margin-top: 0;
      }
    }
  }
  .t-help-tip-header {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 100;
    padding: 2px 16px;
    border-radius: 2px;
    border-left: 1px dashed var(--t-log-fold-icon-color);
    border-bottom: 1px dashed var(--t-log-fold-icon-color);
  }
  .t-help-tip-content {
    min-height: 40px;
    max-height: 130px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .hamster,
  .hamster div {
    position: absolute;
    --dur: 1s;
  }

  .hamster:local {
    animation: hamster var(--dur) ease-in-out infinite;
    top: 50%;
    left: 15px;
    width: 7em;
    height: 3.75em;
    transform: rotate(4deg) translate(-0.8em, 1.85em);
    transform-origin: 50% 0;
    z-index: 1;
  }

  .hamster__head:local {
    animation: hamsterHead var(--dur) ease-in-out infinite;
    background: hsl(30, 90%, 55%);
    border-radius: 70% 30% 0 100% / 40% 25% 25% 60%;
    box-shadow: 0 -0.25em 0 hsl(30, 90%, 80%) inset,
      0.75em -1.55em 0 hsl(30, 90%, 90%) inset;
    top: 0;
    left: -2em;
    width: 2.75em;
    height: 2.5em;
    transform-origin: 100% 50%;
  }

  .hamster__ear:local {
    animation: hamsterEar var(--dur) ease-in-out infinite;
    background: hsl(0, 90%, 85%);
    border-radius: 50%;
    box-shadow: -0.25em 0 hsl(30, 90%, 55%) inset;
    top: -0.25em;
    right: -0.25em;
    width: 0.75em;
    height: 0.75em;
    transform-origin: 50% 75%;
  }

  .hamster__eye:local {
    animation: hamsterEye var(--dur) linear infinite;
    background-color: hsl(0, 0%, 0%);
    border-radius: 50%;
    top: 0.375em;
    left: 1.25em;
    width: 0.5em;
    height: 0.5em;
  }

  .hamster__nose {
    background: hsl(0, 90%, 75%);
    border-radius: 35% 65% 85% 15% / 70% 50% 50% 30%;
    top: 0.75em;
    left: 0;
    width: 0.2em;
    height: 0.25em;
  }

  .hamster__body:local {
    animation: hamsterBody var(--dur) ease-in-out infinite;
    background: hsl(30, 90%, 90%);
    border-radius: 50% 30% 50% 30% / 15% 60% 40% 40%;
    box-shadow: 0.1em 0.75em 0 hsl(30, 90%, 55%) inset,
      0.15em -0.5em 0 hsl(30, 90%, 80%) inset;
    top: 0.25em;
    left: 2em;
    width: 4.5em;
    height: 3em;
    transform-origin: 17% 50%;
    transform-style: preserve-3d;
  }

  .hamster__limb--fr,
  .hamster__limb--fl {
    clip-path: polygon(0 0, 100% 0, 70% 80%, 60% 100%, 0% 100%, 40% 80%);
    top: 2em;
    left: 0.5em;
    width: 1em;
    height: 1.5em;
    transform-origin: 50% 0;
  }

  .hamster__limb--fr:local {
    animation: hamsterFRLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30, 90%, 80%) 80%, hsl(0, 90%, 75%) 80%);
    transform: rotate(15deg) translateZ(-1px);
  }

  .hamster__limb--fl:local {
    animation: hamsterFLLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30, 90%, 90%) 80%, hsl(0, 90%, 85%) 80%);
    transform: rotate(15deg);
  }

  .hamster__limb--br,
  .hamster__limb--bl {
    border-radius: 0.75em 0.75em 0 0;
    clip-path: polygon(
      0 0,
      100% 0,
      100% 30%,
      70% 90%,
      70% 100%,
      30% 100%,
      40% 90%,
      0% 30%
    );
    top: 1em;
    left: 2.8em;
    width: 1.5em;
    height: 2.5em;
    transform-origin: 50% 30%;
  }

  .hamster__limb--br:local {
    animation: hamsterBRLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30, 90%, 80%) 90%, hsl(0, 90%, 75%) 90%);
    transform: rotate(-25deg) translateZ(-1px);
  }

  .hamster__limb--bl:local {
    animation: hamsterBLLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30, 90%, 90%) 90%, hsl(0, 90%, 85%) 90%);
    transform: rotate(-25deg);
  }

  .hamster__tail:local {
    animation: hamsterTail var(--dur) linear infinite;
    background: hsl(0, 90%, 85%);
    border-radius: 0.25em 50% 50% 0.25em;
    box-shadow: 0 -0.2em 0 hsl(0, 90%, 75%) inset;
    top: 1.5em;
    right: -0.5em;
    width: 1em;
    height: 0.5em;
    transform: rotate(30deg) translateZ(-1px);
    transform-origin: 0.25em 0.25em;
  }

  /* Animations */
  @keyframes hamster {
    from,
    to {
      transform: rotate(4deg) translate(-0.8em, 1.85em);
    }

    50% {
      transform: rotate(0) translate(-0.8em, 1.85em);
    }
  }

  @keyframes hamsterHead {
    from,
    25%,
    50%,
    75%,
    to {
      transform: rotate(0);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
      transform: rotate(8deg);
    }
  }

  @keyframes hamsterEye {
    from,
    90%,
    to {
      transform: scaleY(1);
    }

    95% {
      transform: scaleY(0);
    }
  }

  @keyframes hamsterEar {
    from,
    25%,
    50%,
    75%,
    to {
      transform: rotate(0);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
      transform: rotate(12deg);
    }
  }

  @keyframes hamsterBody {
    from,
    25%,
    50%,
    75%,
    to {
      transform: rotate(0);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
      transform: rotate(-2deg);
    }
  }

  @keyframes hamsterFRLimb {
    from,
    25%,
    50%,
    75%,
    to {
      transform: rotate(50deg) translateZ(-1px);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
      transform: rotate(-30deg) translateZ(-1px);
    }
  }

  @keyframes hamsterFLLimb {
    from,
    25%,
    50%,
    75%,
    to {
      transform: rotate(-30deg);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
      transform: rotate(50deg);
    }
  }

  @keyframes hamsterBRLimb {
    from,
    25%,
    50%,
    75%,
    to {
      transform: rotate(-60deg) translateZ(-1px);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
      transform: rotate(20deg) translateZ(-1px);
    }
  }

  @keyframes hamsterBLLimb {
    from,
    25%,
    50%,
    75%,
    to {
      transform: rotate(20deg);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
      transform: rotate(-60deg);
    }
  }

  @keyframes hamsterTail {
    from,
    25%,
    50%,
    75%,
    to {
      transform: rotate(30deg) translateZ(-1px);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
      transform: rotate(10deg) translateZ(-1px);
    }
  }
}

/**================END=================*/
/**================滚动条样式==========*/
.tContainer * {
  &::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  &::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
  }
  &::-webkit-scrollbar-thumb {
    border-radius: 6px;
    border-style: dashed;
    border-color: transparent;
    border-width: 2px;
    background-color: rgba(157, 165, 183, 0.4);
    background-clip: padding-box;
  }
  &::-webkit-scrollbar-thumb:hover {
    background: rgba(157, 165, 183, 0.7);
    cursor: pointer;
  }
  &::-webkit-scrollbar-track {
    border-radius: 6px;
  }
}
/**=============END================*/
